﻿/*
 * Created by SharpDevelop.
 * User: IEscarro
 * Date: 8/25/2009
 * Time: 1:13 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */

using System;

namespace Miming.Model
{
	/// <summary>
	/// Description of Name.
	/// </summary>
	public class Name
	{
		string title;
		
		public string Title {
			get { return title; }
			set { title = value; }
		}
		string last;
		
		public string Last {
			get { return last; }
			set { last = value; }
		}
		string first;
		
		public string First {
			get { return first; }
			set { first = value; }
		}
		string middle;
		
		public string Middle {
			get { return middle; }
			set { middle = value; }
		}
		
		public Name()
		{
		}
		
		public Name(string last, string first, string middle) : this("", last, first, middle)
		{
		}
		
		public Name(string title, string last, string first, string middle)
		{
			this.title = title;
			this.last = last;
			this.first = first;
			this.middle = middle;
		}
		
		public override string ToString()
		{
			return string.Format("{0}, {1} {2}", last, first, middle);
		}
	}
}
